<?php
	include "public/commom/config.php";//引入配置连接数据库文件
	
	if($_GET) {
		$comment_id = $_GET["comment_id"];//评论id
		
		$sql = "DELETE FROM comment WHERE comment_id = $comment_id";//sql语句 - 删除该评论
	
		$result = mysqli_query($conn, $sql);//cresult - 执行sql语句
		
		mysqli_close($conn);//关闭数据库连接
	
		echo "<script>location.href='" . $_SERVER["HTTP_REFERER"] . "';</script>";//返回上一页
	}
?>